package com.neuedu.jdbc.po;

import java.util.Date;

/***
 * 项目名称:  MyJDBC 
 * 包：  com.neuedu.jdbc.po 
 * date:   2025/11/7   13:35  
 * 描述:  持久层对象
 *  Persistent Object
 *  @author : 张金山
 *  作者博客:   https://blog.fulfill.com.cn
 */

public class User {
    private Long id;
    private String username;
    private String password;
    private String nickname;
    private Date lastLogin;
    private String status;
    private Date createtime;
    private Long createuser;
    private Date updateTime;
    private Long updateuser;

    public User() {
    }

    public User(Long id, String username, String password, String nickname, Date lastLogin, String status, Date createtime, Long createuser, Date updateTime, Long updateuser) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.lastLogin = lastLogin;
        this.status = status;
        this.createtime = createtime;
        this.createuser = createuser;
        this.updateTime = updateTime;
        this.updateuser = updateuser;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getCreateuser() {
        return createuser;
    }

    public void setCreateuser(Long createuser) {
        this.createuser = createuser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(Long updateuser) {
        this.updateuser = updateuser;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", lastLogin=" + lastLogin +
                ", status='" + status + '\'' +
                ", createtime=" + createtime +
                ", createuser=" + createuser +
                ", updateTime=" + updateTime +
                ", updateuser=" + updateuser +
                '}';
    }
}
